<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group row">
        <label class="control-label col-xs-12 col-sm-2">{:__('产品类别')}:</label>
        <div class="col-xs-12 col-sm-8">
            <dl class="fieldlist" data-template="eventtpl" data-name="row[type]">
                <dd><ins>{:__('字段')}</ins><ins>{:__('要修改的值')}</ins><ins>{:__('字段名称')}</ins></dd>
                <dd>
                    <a href="javascript:;" class="btn btn-sm btn-success btn-append" id="add-append">
                        <i class="fa fa-plus"></i> {:__('Append')}
                    </a>
                </dd>
                <!--请注意 dd和textarea间不能存在其它任何元素，实际开发中textarea应该添加个hidden进行隐藏-->
                <textarea name="row[type]" class="form-control hidden" cols="30" rows="5">{$type}</textarea>
            </dl>
            <script id="eventtpl" type="text/html">
                <dd class="form-inline">
                    <ins>
                        <input type="text" name="<%=name%>[<%=index%>][id]" class="form-control" value="<%=row.id%>" placeholder="字段" />
                    </ins>
                    <ins>
                        <input type="text" name="<%=value%>[<%=index%>][value]" class="form-control" value="<%=row.value%>" placeholder="要修改的值"/>
                    </ins>
                    <ins>
                        <input type="text" name="<%=name%>[<%=index%>][name]" class="form-control" value="<%=row.name%>" placeholder="字段名称"/>
                    </ins>
                    <!--下面的两个按钮务必保留-->
                    <span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span>
                    <span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span>
                </dd>
            </script>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
